package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ContextListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        System.out.printf("%s:web应用销毁...\n",this.getClass().getSimpleName());
    }

    @Override
    public void contextInitialized(ServletContextEvent arg0) {

        System.out.printf("%s:web应用初始化...\n",this.getClass().getSimpleName());

    }
}